import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    showDialog:false
  },
  mutations: {
    /**
     * 当用户的登录信息失效的时候就把
     * @param state
     */
    setShowDialogToTrue(state){
    state.showDialog=true;
    },
    setShowDialogToFalse(state){
      state.showDialog=false;
    }
  },
  actions: {
  },
  modules: {
  },
  getters:{
    getShowDialogStatus(state){
      return state.showDialog;
    }
  }
})
